package com.boil.demo.ioc.car04;
// +-------------------------------------------------------------
// | Created by IntelliJ IDEA.
// +-------------------------------------------------------------
// | Author      : linhai
// +-------------------------------------------------------------
// | Date        : 2019-05-05 22:50
// +-------------------------------------------------------------
// | Description :
// +-------------------------------------------------------------

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestCar {

    @Test
    public void TestCar04() {

        ApplicationContext context =
                new ClassPathXmlApplicationContext("applicationContext04.xml");

        Car car = (Car) context.getBean("car");

        car.run();
    }
}
